# 安装 FastAPI
pip install fastapi uvicorn

# 创建简单的 FastAPI 应用
from fastapi import FastAPI
app = FastAPI()

@app.get('/')
def hello():
    return {"message": "Hello, World!"}

# 运行应用
# uvicorn main:app --reload